package com.crocodile.game17.common;

import lombok.Data;

/**
 * 自定义异常类
 */
@Data
public class AppException extends RuntimeException{
    //错误状态码
    private int status;
    //错误信息
    private String msg;

    public AppException(AppExceptionMsgEnum appExceptionMsgEnum) {
        this.status = appExceptionMsgEnum.getStatus();
        this.msg = appExceptionMsgEnum.getMsg();
    }


}
